require_dependency 'map_utils'
 
class PrintController < ApplicationController 

  include MapUtils 
  helper "ecases"
  
  def index
    @view_all = true
    set_ecase
    pre_set_map_extended
  end
  
  private
  
  def set_ecase
    @ecase = Ecase.find(params[:id])
    @events = @ecase.events
    if @ecase.nil?
       redirect_to :action => :list and return
    end
  end
  
   def pre_set_map_extended
    @ecase_region = @region = @ecase.ecase_region
    set_map_extended
  end
  
end
